type Options = {
	label: string
	value: string
}
export function enumToOptions(enumObj: Record<string, any>, extra?: Record<string, any>): Options[] {
	const options: Options[] = []
	enumObj = {
		...extra,
		...enumObj
	}
	for (const [key, value] of Object.entries(enumObj)) {
		options.push({
			label: value,
			value: key
		})
	}
	return options
}
